﻿using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace ibba.src.norisk.Contracts
{
    [DataContract]
    [KnownType(typeof(AreaSubLimite))]
    public class AreaLimite
    {
        [DataMember]
        public short IdAreaLimite { get; set; }

        [DataMember]
        public string DescAreaLimite { get; set; }
    }

    [DataContract]
    [KnownType(typeof(DeParaAreaSubLimite))]
    public class AreaSubLimite : AreaLimite
    {
        [DataMember]
        public short IdAreaSubLimite { get; set; }

        [DataMember]
        public string DescAreaSubLimite { get; set; }

        [DataMember]
        [XmlIgnore]
        public bool Ativo { get; set; }
    }

    [DataContract]
    public class DeParaAreaSubLimite : AreaSubLimite
    {
        [DataMember]
        public List<DeParaProdutoItau> ProdutosItau { get; set; }

        [DataMember]
        public List<DeParaEstrategia> Estrategias { get; set; }

        [DataMember]
        public List<DeParaAreaInstitucional> AreasInstitucionais { get; set; }
    }
}
